package com.ruoyi.test.web;

import com.ruoyi.test.domain.User;
import com.ruoyi.test.domain.common.Result;
import com.ruoyi.test.serv.IUserServ;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello/user")
public class UserController {
    @Autowired
    private IUserServ userServ;

    @PostMapping("/login")
    public Result<T> login(@RequestBody User dto) {
        return userServ.login(dto);
    }
}
